<?php
namespace Home\Controller;
use Think\Controller;

class ShowmessageappController extends  BaseController
{
	public function index()
	{		
		$root = get_baseroot();
				
		$id = trim($GLOBALS['request']['id']);
		//$user_id = intval($GLOBALS['request']['user_id']);
		$sql = "select id,title,content,FROM_UNIXTIME(create_time,'%Y-%m-%d') as create_date,1 as type from ".DB_PREFIX."msg_box where id = ".$id;
		//echo $sql; exit;
		$article = $GLOBALS['db']->getRow($sql);
		
		$root['id'] = $article['id'];
		$root['title'] = $article['title'];
		$root['content'] = get_abs_img_root($article['content']);
		$root['response_code'] = 1;
		$root['program_title'] = $article['title'];
		output($root);
	}
}

?>